package com.sat.wisdom.Views.Impl.LeftMenu;

import android.app.Activity;
import android.graphics.Color;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;

import com.sat.wisdom.Views.Bases.BaseMenuDetailPage;

/**
 * Project:wisdom_xx
 * Package:com.sat.wisdom.Views.Impl.LeftMenu
 * Created by 透野君爱打奶炮 on 2018-06-29 at 20:23
 */

/**
 * 菜单详情页--新闻
 */
public class NewsMenuDetailsPager extends BaseMenuDetailPage {
    public NewsMenuDetailsPager(Activity activity) {
        super(activity);
    }

    @Override
    public View initView() {
        TextView textView = new TextView(mActivity);
        textView.setText("新闻");
        //setTextColor(0xFF0000FF);
        //0xFF0000FF是int类型的数据，分组一下0x|FF|0000FF，
        //0x是代表颜色整 数的标记，ff是表示透明度，0000FF表示颜色，注意：这里0xFF0000FF必须是8个的颜色表示，不接受0000FF这种6个的颜色表示。
        //setTextColor(Color.rgb(255, 255, 255));
        //setTextColor(Color.parseColor("#FFFFFF"));
        textView.setTextColor(Color.parseColor("#934251"));
        textView.setTextSize(28);
        textView.setGravity(Gravity.CENTER);
        return textView;
    }
}
